//
//  CreateEventCell.m
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/9/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import "CreateEventCell.h"

@implementation CreateEventCell
@synthesize textField, label, switcher, detailLabel;

+ (id)titleCellFromNib {
    CreateEventCell *cell = nil;
    NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CreateEventCell" owner:self options:nil];
    cell = (CreateEventCell *)[nibs objectAtIndex:0];
    return cell;
}

+ (id)indicatorCellFromNib {
    CreateEventCell *cell = nil;
    NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CreateEventCell" owner:self options:nil];
    cell = (CreateEventCell *)[nibs objectAtIndex:1];
    cell.detailLabel.textColor = [UIColor colorWithRed:56/255.0 green:84/255.0 blue:135/255.0 alpha:1.0];
    cell.detailLabel.font = [UIFont fontWithName:@"MyriadPro-Regular" size:17];
    return cell;
}

+ (id)phoneCellFromNib {
    CreateEventCell *cell = nil;
    NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CreateEventCell" owner:self options:nil];
    cell = (CreateEventCell *)[nibs objectAtIndex:2];
    return cell;
}

+ (id)switcherCellFromNib {
    CreateEventCell *cell = nil;
    NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CreateEventCell" owner:self options:nil];
    cell = (CreateEventCell *)[nibs objectAtIndex:3];
    return cell;
}

+ (id)codeCellFromNib {
    CreateEventCell *cell = nil;
    NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CreateEventCell" owner:self options:nil];
    cell = (CreateEventCell *)[nibs objectAtIndex:4];
    cell.detailLabel.textColor = [UIColor colorWithRed:71/255.0 green:138/255.0 blue:197/255.0 alpha:1.0];
    return cell;    
}

- (void)dealloc {
    self.textField = nil;
    self.switcher = nil;
    self.label = nil;
    self.detailLabel = nil;
    [super dealloc];
}

@end
